package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 问卷信息对象 user_info
 * 
 * @author ruoyi
 * @date 2024-08-05
 */
public class UserInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phoneNumber;

    /** 使用年限 */
    @Excel(name = "使用年限")
    private String usageYears;

    /** 建议 */
    @Excel(name = "建议")
    private String suggestions;

    /** 是否发送短信 */
    @Excel(name = "是否发送短信")
    private Integer smsSent;

    /** 是否领取 */
    @Excel(name = "是否领取")
    private Integer received;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date receivedTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }

    public void setUsageYears(String usageYears) 
    {
        this.usageYears = usageYears;
    }

    public String getUsageYears() 
    {
        return usageYears;
    }

    public void setSuggestions(String suggestions) 
    {
        this.suggestions = suggestions;
    }

    public String getSuggestions() 
    {
        return suggestions;
    }

    public void setSmsSent(Integer smsSent) 
    {
        this.smsSent = smsSent;
    }

    public Integer getSmsSent() 
    {
        return smsSent;
    }

    public void setReceived(Integer received) 
    {
        this.received = received;
    }

    public Integer getReceived() 
    {
        return received;
    }

    public void setReceivedTime(Date receivedTime) 
    {
        this.receivedTime = receivedTime;
    }

    public Date getReceivedTime() 
    {
        return receivedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("phoneNumber", getPhoneNumber())
            .append("usageYears", getUsageYears())
            .append("suggestions", getSuggestions())
            .append("smsSent", getSmsSent())
            .append("received", getReceived())
            .append("receivedTime", getReceivedTime())
            .toString();
    }
}
